home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EuroCD 3
/
EuroCD 3.iso
/
Programming
/
SecalDemo
/
Inc
/
hardware
/
custom.inc
< prev
next >
Wrap
Text File
|
1998-06-24
|
3KB
|
150 lines
include "inc/exec/types.inc";
struct Custom is
bltddat:uword;
dmaconr:uword;
vposr:uword;
vhposr:uword;
dskdatr:uword;
joy0dat:uword;
joy1dat:uword;
clxdat:uword;
adkconr:uword;
pot0dat:uword;
pot1dat:uword;
potinp:uword;
serdatr:uword;
dskbytr:uword;
intenar:uword;
intreqr:uword;
dskpt:ulong;
dsklen:uword;
dskdat:uword;
refptr:uword;
vposw:uword;
vhposw:uword;
copcon:uword;
serdat:uword;
serper:uword;
potgo:uword;
joytest:uword;
strequ:uword;
strvbl:uword;
strhor:uword;
strlong:uword;
bltcon0:uword;
bltcon1:uword;
bltafwm:uword;
bltalwm:uword;
bltcpt:ulong;
bltbpt:ulong;
bltapt:ulong;
bltdpt:ulong;
bltsize:uword;
pad2d:ubyte;
bltcon0l:ubyte;
bltsizv:uword;
bltsizh:uword;
bltcmod:uword;
bltbmod:uword;
bltamod:uword;
bltdmod:uword;
pad34[4]:uword;
bltcdat:uword;
bltbdat:uword;
bltadat:uword;
pad3b[3]:uword;
deniseid:uword;
dsksync:uword;
cop1lc:ulong;
cop2lc:ulong;
copjmp1:uword;
copjmp2:uword;
copins:uword;
diwstrt:uword;
diwstop:uword;
ddfstrt:uword;
ddfstop:uword;
dmacon:uword;
clxcon:uword;
intena:uword;
intreq:uword;
adkcon:uword;
aud[4]:struct AudChannel is
ac_ptr:ulong;
ac_len:uword;
ac_per:uword;
ac_vol:uword;
ac_dat:uword;
ac_pad[2]:uword;
;
bplpt[8]:ulong;
bplcon0:uword;
bplcon1:uword;
bplcon2:uword;
bplcon3:uword;
bpl1mod:uword;
bpl2mod:uword;
bplcon4:uword;
clxcon2:uword;
bpldat[8]:uword;
sprpt[8]:ulong;
spr[8]:struct SpriteDef is
pos:uword;
ctl:uword;
dataa:uword;
datab:uword;
;
color[32]:uword;
htotal:uword;
hsstop:uword;
hbstrt:uword;
hbstop:uword;
vtotal:uword;
vsstop:uword;
vbstrt:uword;
vbstop:uword;
sprhstrt:uword;
sprhstop:uword;
bplhstrt:uword;
bplhstop:uword;
hhposw:uword;
hhposr:uword;
beamcon0:uword;
hsstrt:uword;
vsstrt:uword;
hcenter:uword;
diwhigh:uword;
padf3[11]:uword;
fmode:uword;
;
def VARVBLANK = $1000;
def LOLDIS = $0800;
def CSCBLANKEN = $0400;
def VARVSYNC = $0200;
def VARHSYNC = $0100;
def VARBEAM = $0080;
def DISPLAYDUAL = $0040;
def DISPLAYPAL = $0020;
def VARCSYNC = $0010;
def CSBLANK = $0008;
def CSYNCTRUE = $0004;
def VSYNCTRUE = $0002;
def HSYNCTRUE = $0001;
def USE_BPLCON3 = 1;
def BPLCON2_ZDCTEN = (1<<10);
def BPLCON2_ZDBPEN = (1<<11);
def BPLCON2_ZDBPSEL0 = (1<<12);
def BPLCON2_ZDBPSEL1 = (1<<13);
def BPLCON2_ZDBPSEL2 = (1<<14);
def BPLCON3_EXTBLNKEN = (1<<0);
def BPLCON3_EXTBLKZD = (1<<1);
def BPLCON3_ZDCLKEN = (1<<2);
def BPLCON3_BRDNTRAN = (1<<4);
def BPLCON3_BRDNBLNK = (1<<5);